package com.java.demo.data;

import java.io.*;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

/**
 * @auther zhangwj
 * @date 2020/5/28 11:35 上午
 */
public class Test extends MyThread {

    public static void main(String[] args) {
        int i = 0;
        i = i++;
        System.out.println(i);
    }

    private void getInt(Data data) {
        data.setData("33333");
        data.setAge(20);
        System.out.println(data.getData());
    }
}

class MyThread {

    private final static byte[] aByte = new byte[1];

    private final static long TIME = 5000;

    static void tryLock() {
        synchronized (aByte) {
            try {
                System.out.println("线程ID:" + Thread.currentThread().getId());
                Thread.sleep(TIME);
            } catch (Exception e) {

            }
        }
    }

}

class Data implements Serializable {

    private static final long serialVersionUID = 1L;

    private String data;

    private int age;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}


class D {

    public final static Node node = Node.initNode(1, "222");

    public void out() {
        System.out.println(node.hashCode());
    }
}

class E {

    public void out() {
        System.out.println(D.node.hashCode());
    }

}
